import { get_month_first,get_date } from '@/const/crud/rca/common.js'
export const startDate = get_month_first(0);
export const endDate = get_date(0);
export const tableOption = {
  "border": true,
  "index": true,
  "indexLabel": "序号",
  "stripe": true,
  "menuAlign": "center",
  "align": "center",
  viewBtn: true,
  editBtn: false,
  delBtn: false,
  labelWidth: 110,
  searchLabelWidth: 100,
  searchMenuSpan: 6,
  selection: true,
  width: 120,
  "column": [
	  {
      "type": "input",
      "label": "唯一标识",
      "prop": "id",
      "hide": true,
      "display": false
    }, {
      "type": "date",
      "label": "稽查日期",
      "prop": "checkDate",
      "format": "yyyy-MM-dd",
      "valueFormat": "yyyy-MM-dd",
      searchValue: [startDate, endDate], 
      searchSpan: 12,
      searchRange: true,
      search: true,
      hide: true,
      display: false
    }, {
      "type": "date",
      "label": "稽查日期",
      "prop": "checkTime",
      "format": "yyyy-MM-dd",
      "valueFormat": "yyyy-MM-dd HH:mm:ss",
      //row: true,
      rules: [{
        required: true,
        message: '请选择稽查日期'
      }]
    },{
      type: 'select',
      label: '数据类型',
      prop: 'dataType',
      dicData: [{
        label: '下发',
        value: '0'
      },{
        label: '记录',
        value: '1'
      }],
      search: true,
      rules: [{
        required: true,
        message: '请选择数据类型'
      }]
    }, {
      label: '线路',
      prop: 'lineCode',
      type: 'select',
      cascaderItem: ["stationCode"],
      props: {
        label: 'name',
        value: 'code'
      },
      dicUrl: "/support/swparamline/dict",
      search: true
    }, {
      label: '车站',
      prop: 'stationCode',
      type: 'select',
      props: {
      	label: 'name',
      	value: 'code'
      },
      dicFlag: false,
      dicUrl: "/support/swparamstation/dict/{{key}}",
      search: true
    }, {
      "type": "input",
      "label": "被检查人",
      "prop": "checkedPersonName",
      search: true
    },	  {
      "type": "input",
      "label": "被检查人工号",
      "width": "150px",
      "prop": "checkedPersonCode"
    },	  {
      "type": "input",
      "label": "检查人",
      "prop": "checkPersonName",
      search: true,
      params: {
        userCodeKey: 'checkPersonCode'
      },
      component: 'user-select',
      rules: [{
        required: true,
        message: '请选择检查人'
      }]
    },	  {
      "type": "input",
      "label": "检查人工号",
       "width": "150px",
      "prop": "checkPersonCode",
      placeholder: ' ',
      disabled: true
    },{
      "type": "select",
      "label": "通知状态",
      "prop": "noticeStatus",
      searchValue: '0',//默认未通知
      search: true,
      dicUrl: '/admin/dict/type/epm_ex_ticket_operation_notice',
      addDisplay: false,
      editDisplay: false
    }, {
      "type": "date",
      "label": "通知时间",
      "prop": "noticeTime",
      addDisplay: false,
      editDisplay: false,
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      width: 90
    },  {
      "type": "number",
      "label": "反馈期限",
      "prop": "backTimeLimit"
    },{
      "type": "datetime",
      "label": "反馈时间",
      "prop": "backTime",
      addDisplay: false,
      editDisplay: false,
      width: 90
    },{
      "type": "input",
      "label": "反馈状态",
      "prop": "backStatus",
      hide: true,
      display: false,
    },{
      "type": "upload",
      "label": "附件",
      "prop": "file",
      component: 'zd-upload',
      dataType: 'string',
      limit: 1,
      hide: true,
      span: 24,
      addDisplay: false,
      editDisplay: false
    }, {
      "type": "upload",
      "label": "图片",
      "prop": "picture",
      component: 'zd-upload',
      listType: 'picture-img',
      hide: true,
      span: 24,
      addDisplay: false,
      editDisplay: false
    },	  {
      "type": "textarea",
      "label": "稽查问题详情",
       width: "180px",
      "prop": "problemContent",
      span: 24,
      width: '240px',
      rules: [{
        required: true,
        message: '请输入稽查问题详情'
      }]
    },	  {
      "type": "textarea",
      "label": "反馈结果",
      "prop": "feedbackResult",
      span: 24,
      width: '240px',
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      disabled: true
    },	  {
      "type": "input",
      "label": "部门ID",
      "prop": "deptId",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "创建人ID",
      "prop": "creatorId",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "创建人名称",
      "prop": "creatorName",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "创建时间",
      "prop": "createTime",
      "hide": true,
      "display": false
    },	  {
      "type": "input",
      "label": "修改时间",
      "prop": "updateTime",
      "hide": true,
      "display": false
    }  ]
}
